#pragma once
#include "TVector.h"

class TPoint
{
public:
	double _x,_y,_z; //Point coordinates in 3D environment 
	TPoint(void);
	TPoint(double x, double y, double z);
	~TPoint(void);
	TPoint lerp(TPoint p2,float timeStep);
	static TPoint add(TPoint p1,TPoint p2);
	TPoint inverse();
	double X(){return _x;}
	double Y(){return _y;}
	double Z(){return _z;}
	friend TPoint operator+(TPoint p1,TPoint p2)
	{
		return TPoint::add(p1,p2);
    }
	void print()
	{
		printf("%f %f %f\n",_x,_y,_z);
	}

};

